package com.ensah.dao.impl;

import com.ensah.dao.RoleDao;
import com.ensah.metier.bo.Etudiant;
import com.ensah.metier.bo.Role;
import com.boudaa.dao.impl.GenericDaoImpl;

public class RoleDaoImpl extends GenericDaoImpl<Role, Long> implements RoleDao{

	public RoleDaoImpl() {
		super(Role.class);
	}

	public Role getRoleByNom(String nom) {
		
		
		return (Role) getHibernateTemplate().find("from Role where nomrole =?",nom).get(0);

	}

}
